/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.propertiesController;

/**
 *
 * @author Juan Manuel
 */
public class AnalysisWizardProperties extends SystoleProperties {

    private final static String WIZARD_SETTINGS_FILE_NAME = "analysis_wizard_settings";
    private final static String WIZARD_SETTINGS_PROPERTY = "wizard.";

    @Override
    protected void loadProperties() {
        this.properties = this.propertiesReader.loadProperties(WIZARD_SETTINGS_FILE_NAME);
    }

    @Override
    public void saveProperties() {
        this.propertiesReader.saveProperties(properties,
                WIZARD_SETTINGS_FILE_NAME);
    }

    /**
     * Save used signal frequency
     * @param id
     */
    public void saveSignalFrequencyUsed(int id) {
        this.saveIntValue(WIZARD_SETTINGS_PROPERTY + "frequency", id);
    }

    /**
     *
     * @return las signal frequency used
     */
    public int loadSignalFrequencyUsed() {
        return this.loadIntValue(WIZARD_SETTINGS_PROPERTY + "frequency");
    }

    /**
     * @param inverted if it was inverted the signal
     */
    public void saveInvertedSignal(boolean inverted) {
        this.saveBooleanValue(WIZARD_SETTINGS_PROPERTY + "inverted", inverted);
    }

    /**
     * @return last value of inverted signal
     */
    public boolean loadInvertedSignal() {
        return this.loadBooleanValue(WIZARD_SETTINGS_PROPERTY + "inverted");
    }

    
}
